<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>3_拆分组件为文件</title>
        <script type="text/javascript" src="../js/vue.js"></script>
        <script src="./School.js"></script>
        <script src="./Student.js"></script>
    </head>
    <body>
        <div id="demo"></div>
    </body>

    <script type="text/javascript">

        Vue.config.productionTip = false;
    
        const App = {
            name: 'App',
            components: {School,Student},
            template: `
                <div>
                    <School/>
                    <hr>
                    <Student/>    
                </div>
            `,
        }

        new Vue({
            el: '#demo',
            components: {App},
            template: 'App'
        })

    </script>
</html>